
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@mdit-vue/plugin-sfc
Advanced tools
A markdown-it plugin to help transforming markdown to Vue SFC.
<script>
and <style>
tags and extract them into to markdown-it env.sfcBlocks
.env.sfcBlocks.template
for convenience.npm i @mdit-vue/plugin-sfc
This plugin will only take effects when the html
option of markdown-it is enabled:
import MarkdownIt from 'markdown-it';
import { sfcPlugin } from '@mdit-vue/plugin-sfc';
import type { MarkdownItEnv } from '@mdit-vue/types';
const md = MarkdownIt({ html: true }).use(sfcPlugin, {
// options
});
const env: MarkdownItEnv = {};
const rendered = md.render(
`\
# foo
<script>
console.log('bar')
</script>
`,
env,
);
console.log(env.sfcBlocks);
Type: string[]
Default: []
Details:
SFC custom blocks to be extracted.
By default, only <script>
and <style>
tags will be extracted. You can set this option to support SFC custom blocks in markdown.
For example, if you set this option to ['i18n']
, the <i18n>
tag in your markdown content will be extracted to env.sfcBlocks.customBlocks
and won't appear in the rendered result.
FAQs
A markdown-it plugin to help transforming markdown tu vue sfc
We found that @mdit-vue/plugin-sfc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.